package com.unisedu.pay.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.unisedu.pay.dao.OrderDao;
import com.unisedu.pay.dao.ProjectDao;
import com.unisedu.pay.entity.Global;
import com.unisedu.pay.entity.Order;
import com.unisedu.pay.entity.Project;
import com.unisedu.pay.enumration.WebSite;
import com.unisedu.pay.utils.MD5Utils;
import com.unisedu.pay.utils.StringUtils;
import org.apache.log4j.Logger;
import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.util.*;

@Service
public class ProjectService extends BaseService<Project,ProjectDao>{

    public List<Project> findByIdProject(String idProject){
        return this.dao.findByIdProject(idProject);
    }

    public void insert(Project project){
        this.dao.insert(project);
    }

    public void update(Project project){
        this.dao.update(project);
    }

}
